import request from '@/utils/request'

// 查询案件流程列表
export function listAmCaseFlow(query) {
  return request({
    url: '/caseconfig/amCaseFlow/list',
    method: 'get',
    params: query
  })
}

// 查询案件流程详细
export function getAmCaseFlow(flowId) {
  return request({
    url: '/caseconfig/amCaseFlow/' + flowId,
    method: 'get'
  })
}

// 新增案件流程
export function addAmCaseFlow(data) {
  return request({
    url: '/caseconfig/amCaseFlow',
    method: 'post',
    data: data
  })
}

// 修改案件流程
export function updateAmCaseFlow(data) {
  return request({
    url: '/caseconfig/amCaseFlow',
    method: 'put',
    data: data
  })
}

// 删除案件流程
export function delAmCaseFlow(flowId) {
  return request({
    url: '/caseconfig/amCaseFlow/' + flowId,
    method: 'delete'
  })
}
